import request from "../utils/request";

export const checkLogin = (data) => {
    return request.post('/users/checkLogin',data)
}

export const add = (data,config) => {
    return request.post('/users/add',data,config)
}

export const accountInfo = (data) => {
    return request.get('/users/accountinfo',{params:data}) 
}
// 旧密码验证
export const checkOldpwd = (data) => {
    return request.get('/users/checkoldpwd',{params:data})
}

export const editPwd = (data,config) => {
    return request.post('/users/editpwd',data,config) 
}

export const gatList = (data) => {
    return request.get('/users/list',{params:data}) 
}

// 修改用户头像
export const avatarEdit = (data,config) => {
    return request.post('/users/avatar_upload',data,config)
}

export const delList = (data) => {
    return request.get('/users/del',{params:data})
}

export const editList = (data,config) => {
    return request.post('/users/edit',data,config)
}


